<%@ page language="java" pageEncoding="UTF-8" isErrorPage="true"%>  
<%  
String path = request.getContextPath();  
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";  
%>  
<!DOCTYPE html>  
<html>  
<head>  
<base href="<%=basePath%>">  
</head>  
<body>  
  <h1>404错误,您请求的资源找不到或者请求非法,请联系系统管理员</h1>
  <h2>请求地址: ${pageContext.errorData.requestURI} </h2>
  <h2> 状态码 : ${pageContext.errorData.statusCode} </h2>
  <h2>异常 : ${pageContext.errorData.throwable} </h2>
  <h2>servlet名称 :${pageContext.errorData.servletName} </h2>
  
  
  
</body>   
</html>  